package com.wenan.utils
{
	import flash.net.LocalConnection;
	import flash.system.System;  
	
	public class VirtualMachine
	{
		public function VirtualMachine()
		{
		}
		
		public static function gc():void  
		{                          
			try 
			{                            
				new LocalConnection().connect( 'foo' );                            
				new LocalConnection().connect( 'foo' );                          
			} catch ( e : * ) 
			{
			}                   
		}                   
		
		public static function get used():Number 
		{                         
			return System.totalMemory;                    
		}  
	}
}
